package com.esun.rabbit2.viewer.mainact.optionact;

import com.esun.config.DistributionChannels;
import com.esun.ui.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.TextView;

/**
 * @Title: AboutAct.java
 * @Package com.esun.rabbit2.viewer.mainact.optionact
 * @Description: (关于Activity)
 * @author Billy qigs@500wan.com
 * @date 2011-5-27 上午10:29:17 copy right 深圳市易讯天空网络技术有限公司
 */
public class AboutAct extends Activity implements OnClickListener{
	private ImageButton btnBack;
	private TextView tvVersion;
	
	private static final String BANBEN = "版本";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.option_about_act);
		
		btnBack = (ImageButton)findViewById(R.id.option_aboutact_btn_back);
		btnBack.setOnClickListener(this);
		
		tvVersion = (TextView)findViewById(R.id.option_about_act_tv_version);
		tvVersion.setText(BANBEN+getResources().getString(R.string.version)+"."+DistributionChannels.QUDAO);
		
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch(v.getId()){
			case R.id.option_aboutact_btn_back:
				
				AboutAct.this.finish();
				
				break;
			
			default :
				break;
		}
	}
}
